package com.lv.fast.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Description
 * @Author jie.lv
 */
@Data
@ApiModel("日志对象")
public class SysLogDTO {

    @ApiModelProperty(value = "id", example = "1400733549725548546")
    private String id;

    @ApiModelProperty(value = "用户Id", example = "1400733549725548546")
    private String userId;

    @ApiModelProperty(value = "用户名", example = "李四")
    private String userName;

    @ApiModelProperty(value = "操作内容", example = "修改用户")
    private String operation;

    @ApiModelProperty(value = "操作类型 1删除  2修改  2查询  4新增", example = "2")
    private String operateType;

    @ApiModelProperty(value = "操作接口方法", example = "com.lv.fast.controller.SysUserController#update")
    private String method;

    @ApiModelProperty(value = "参数", example = "[{\"id\":\"15287654455235437000\",\"createdBy\":null,\"updatedBy\":null,\"createdTime\":null,\"updatedTime\":null,\"userName\":\"张三\",\"password\":null,\"contactDetail\":\"zhangsan@saxobank.com\",\"joinDate\":\"2021-05-17 00:00:00\",\"userStatus\":\"1\",\"roles\":[{\"id\":\"15287654455235437000\",\"createdBy\":null,\"updatedBy\":null,\"createdTime\":null,\"updatedTime\":null,\"roleName\":null,\"roleDescribe\":null}]}]")
    private String params;

    @ApiModelProperty(value = "请求ip", example = "192.168.72.16")
    private String ip;

    @ApiModelProperty(value = "操作状态  1成功  2失败", example = "1")
    private String operationStatus;

    @ApiModelProperty(value = "创建时间", example = "2021-05-16 20:23:58")
    private LocalDateTime createdTime;
}
